
import axios from './request'

export function getTable(params?: any) {
    console.log(params)
    return axios.request({
        url: "/admin/findUserCertByPage",
        method: "GET",
        params,
    });
}
export function login(data?: any) {
    return axios.request({
        url: "/admin/login",
        method: "POST",
        data,
    });
}
export function getDelete(params?: any) {
    return axios.request({
        url: "/admin/delete",
        method: "GET",
        params,
    });
}
export function getCertByID(data?: any) {
    return axios.request({
        url: "/userCert/getCertByID",
        method: "POST",
        data,
    });
}
export function getCertByPassWord(data?: any) {
    return axios.request({
        url: "/userCert/getCertByPassWord",
        method: "POST",
        data,
    });
}
export function getPhoto(params?: any) {
    return axios.request({
        url: "/userCert/photo",
        method: "GET",
        params,
    });
}
export function handEditMsg(data?: any) {
    return axios.request({
        url: "/admin/edit",
        method: "POST",
        data,
    });
}
export function newPassWord(data?: any) {
    return axios.request({
        url: "/userCert/newPassWord",
        method: "POST",
        data,
    });
}
export function forgetPassWord(data?: any) {
    return axios.request({
        url: "/userCert/forgetPassWord",
        method: "POST",
        data,
    });
}
